package module.dao;

import common.annotation.DaoSql;
import common.annotation.QueryDao;
import common.bean.SearchPageResult;
import common.bean.SearchParameter;
import common.dao.BaseDao;
import module.model.AssessmentDataModel;
import module.model.AssessmentGradingModel;

import java.util.List;

@QueryDao
public interface AssessmentDataDao extends BaseDao<Long,AssessmentDataModel> {
    @DaoSql(sql="SELECT * FROM assessment_data WHERE 1=1 { and FORM_ID=:formId } ",resultType = "List[AssessmentDataModelMapping]")
    List<AssessmentDataModel> getAssessmentDataModelListBySearchParameter(SearchParameter searchParameter);

    @DaoSql(sql="SELECT * FROM assessment_data WHERE 1=1 { and FORM_ID=:formId } order by POS asc",resultType = "Page[AssessmentDataModelMapping]")
    public SearchPageResult<AssessmentDataModel> getAssessmentDataModelListPage(SearchParameter searchParameter);
}
